fix(usage-metrics): include last release in the legend pop over#3630
fix(usage-metrics): include last release in the legend pop over#3630mdelapenya merged 1 commit intotestcontainers:mainfrom
Conversation
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Summary by CodeRabbit
WalkthroughA modification to the trend chart initialization in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
* origin/main: chore(deps): bump github.com/moby/patternmatcher from 0.6.0 to 0.6.1 (#3628) chore(deps): bump github.com/shirou/gopsutil/v4 from 4.26.2 to 4.26.3 (#3627) chore: strip Gas Town overlay from CLAUDE.md (gt-p35) chore: add project instructions fix: auto-save uncommitted implementation work (gt-pvx safety net) fix(localstack): accept community-archive as a valid tag (#3601) chore!: migrate to moby modules (#3591) chore(deps): bump github.com/go-jose/go-jose/v4 in /modules/gcloud (#3632) chore(deps): bump actions/upload-artifact from 6.0.0 to 7.0.0 (#3625) fix(usage-metrics): include last release in the legend pop over (#3630) chore: update usage metrics (2026-04) (#3621)
What does this PR do?
Two improvements to the usage metrics trend chart:
Hide older versions by default: Only the last 5 releases are visible on the chart. Older versions are hidden but remain in the legend — users can click any legend entry to toggle its visibility.
Fix tooltip for latest release: Switch tooltip mode from
indextoxso that all datasets with a data point at the hovered date appear in the popover. Theindexmode matched by internal array position, which missed versions with fewer data points (e.g. v0.41.0 with only one month of data).Why is it important?
The trend chart was cluttered with 30+ overlapping version lines, making it hard to read. Hiding older versions by default gives a cleaner view while still allowing users to inspect historical data on demand.
The tooltip bug meant the latest release was visible on the chart but absent from the hover popover, which was confusing — users could see the data point but had no way to identify its value.